#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int a[] = { 1,2,3,4,5,6,8 };
	int left = 0, right = sizeof(a) / sizeof(a[0]) - 1;
	int key = 7;
	int find = 0, mid = 0;
	while (left <= right)
	{
	 mid = (left + right) / 2;
		if (a[mid] > key)
		{
			right = mid - 1;
		}
		else if (a[mid] < key)
		{
			left = mid + 1;
		}
		else
		{
			find = 1;
			break;
		}
	}
	if (find == 1)
	{
		printf("zhaodaole%d", mid);
	}
	else
	{
		printf("zhaobudaole");
	}

	return 0;
}